// import inject from '@components/Lib/Hoc/Inject';
import React, { VFC } from 'react';

import { useParams, RouteComponentProps } from 'react-router-dom';

type DemoRouterProps = { id: string };
type TPros = {
  msg: string;
};
type TestProps = TPros & RouteComponentProps;
const Demo: VFC<TestProps > = (props:TestProps) => {
  const { msg } = props;
  console.log('msg: ', msg);
  const { id } = useParams<DemoRouterProps>();
  return (
    <h1>
      接受参数🚗
      {id}
      🚗
    </h1>
  );
};
// const Demo = inject(Test, { msg: '老袁' });
export default Demo;
